<%@ page language="java" import="java.util.*,com.mag.domain.*" pageEncoding="UTF-8" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>供货商详情</title>
    <SCRIPT language="javascript" type="text/javascript"></SCRIPT>
    <style type="text/css" media="screen">
        .center {

            margin: 8%;
            text-align: center;
        }

        .button-style {
            width: 70px;
            height: 30px;
            font-size: 20px;
        }
    </style>

</head>

<body onload="load()" style="background-color: #D9ECF6;">
<div class="center">
    <img src="/manager/img/logo.jpg" style="position: absolute; top: 0; right: 0; width: 160px; height: 160px;">
    <form action="/manager/Suppliersu?type=Update&supplierid=${ updateSupplier.supplierID }" onsubmit="return true"
          method="post">
        <table border="0" style="MARGIN-RIGHT: auto; MARGIN-LEFT: auto; width:600px;font-size: 22px;">
            <tr align="center">
                <td colspan=2><h1>供货商详情</h1></td>
            </tr>
            <%
                Suppliers supplier = new Suppliers();
                supplier = (Suppliers) request.getSession().getAttribute("detailSupplier");
            %>
            <tr align="center">
                <td>供货商ID：</td>
                <td><input type="text" name="SupplierID" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getSupplierID() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>名称：</td>
                <td><input type="text" name="SupplierName" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getSupplierName() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>通信地址：</td>
                <td><input type="text" name="SupplierAddress" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getSupplierAddress() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>网址：</td>
                <td><input type="text" name="WebSite" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getWebSite() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>公司电话：</td>
                <td><input type="text" name="SupplierPhone" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getSupplierPhone() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>公司传真：</td>
                <td><input type="text" name="FaxSupplier" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getFaxSupplier()+"" %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>公务邮箱：</td>
                <td><input type="text" name="OfficialEmail" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getOfficialEmail()+"" %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>联系人：</td>
                <td><input type="text" name="PersonContact" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getPersonContact()+"" %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>联系人电话：</td>
                <td><input type="text" name="PhoneContact" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getPhoneContact() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>关系建立时间：</td>
                <td><input class="easyui-datetimebox" name="DateBulid"
                           style="width: 400px;height: 30px;font-size: 22px;" value="<%=supplier.getDateBulid() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>供应物品：</td>
                <td><input type="text" name="GoodsSupply" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getGoodsSupply() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>首次供货时间：</td>
                <td><input class="easyui-datetimebox" name="DateFirstSupply"
                           style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%= supplier.getDateFirstSupply() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>累计供货次数：</td>
                <td><input type="text" name="AccumulativeTime" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getAccumulativeTime() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>累计供货量：</td>
                <td><input type="text" name="AccumulativeLevel" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getAccumulativeLevel() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>累计次品数：</td>
                <td><input type="text" name="NumFault" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getNumFault() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>延期交货次数 ：</td>
                <td><input type="text" name="NumBacklogging" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getNumBacklogging() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>累计交易额：</td>
                <td><input type="text" name="TotalMoney" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getTotalMoney() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>良品率：</td>
                <td><input type="text" name="NoFaultRate" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getNoFaultRate() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td>准时交货率：</td>
                <td><input type="text" name="DeliveryOnTime" style="width: 400px;height: 30px;font-size: 22px;"
                           value="<%=supplier.getDeliveryOnTime() %>" readonly="readonly"/></td>
            </tr>
            <tr align="center">
                <td colspan=2>
                    <input type="button" align="left" style="width:70px;height:30px; font-size:20px;" value="返回"
                           onclick="history.back()"/>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>